package com.zzedu.dto;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Map;

/**
 * 单词管理对象 zz_thesaurus_words
 *
 * @author Mr.Wang
 * @date 2025-01-29
 */
public class ZzThesaurusWordsDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */

    private Long id;
    /**
     * 单词
     */
    private String word;
    /**
     * 音标
     */
    private String phonetic;
    /**
     * 字母,单词组成单位[{"up":"A","lower":"a"}....]
     */
    private String letter;
    /**
     * 添加时间
     */
    private LocalDateTime gmtCreate;
    /**
     * 更新时间
     */
    private LocalDateTime gmtModify;
    /**
     * 逻辑删除(0：未删除 1：id)
     */
    private Integer deleted;
    private Map<String, Object> params;
    /***
     * 类型
     * 1-单词 2-音频 3-句子
     */
    private Integer wordType;

    /**
     * 当前记录起始索引
     */
    private Long pageNum = 1l;

    /**
     * 每页显示记录数
     */
    private Long pageSize = 20l;
    /**
     * 是否上线
     */
    private Integer onLineFlag;
    /**
     * 排序列
     */
    private String orderByColumn;

    /**
     * 排序的方向desc或者asc
     */
    private String isAsc = "asc";


    /**
     * 在题目内的单词
     */
    private Long includeContentId;

    /**
     * 不在题目内的单词
     */
    private Long excludeContentId;

    /**
     * 在题目对应标签内
     */
    private Long includeContentIdTag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public String getWord() {
        return word;
    }

    public void setPhonetic(String phonetic) {
        this.phonetic = phonetic;
    }

    public String getPhonetic() {
        return phonetic;
    }

    public void setLetter(String letter) {
        this.letter = letter;
    }

    public String getLetter() {
        return letter;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtModify(LocalDateTime gmtModify) {
        this.gmtModify = gmtModify;
    }

    public LocalDateTime getGmtModify() {
        return gmtModify;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getDeleted() {
        return deleted;
    }


    public Long getPageNum() {
        return pageNum;
    }

    public void setPageNum(Long pageNum) {
        this.pageNum = pageNum;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderByColumn() {
        return orderByColumn;
    }

    public void setOrderByColumn(String orderByColumn) {
        this.orderByColumn = orderByColumn;
    }

    public String getIsAsc() {
        return isAsc;
    }

    public void setIsAsc(String isAsc) {
        this.isAsc = isAsc;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public IPage getPageDTO() {
        return PageDTO.of(getPageNum(), getPageSize());
    }

    public Integer getOnLineFlag() {
        return onLineFlag;
    }

    public void setOnLineFlag(Integer onLineFlag) {
        this.onLineFlag = onLineFlag;
    }

    public Long getIncludeContentId() {
        return includeContentId;
    }

    public void setIncludeContentId(Long includeContentId) {
        this.includeContentId = includeContentId;
    }

    public Long getExcludeContentId() {
        return excludeContentId;
    }

    public void setExcludeContentId(Long excludeContentId) {
        this.excludeContentId = excludeContentId;
    }

    public Integer getWordType() {
        return wordType;
    }

    public void setWordType(Integer wordType) {
        this.wordType = wordType;
    }

    public Long getIncludeContentIdTag() {
        return includeContentIdTag;
    }

    public void setIncludeContentIdTag(Long includeContentIdTag) {
        this.includeContentIdTag = includeContentIdTag;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
